import request from '@/utils/request'

// 获取
// export const getInformation = (params) => request.get('', params)

export function getInformation(params) {
    return request({
    url: '',
    method: 'GET',
    params
   })
}

// 新增
// export const getIncreased = (data) => request.post('',data)
export function getIncreased(data) {
    return request({
    url: '',
    method: 'POST',
    data
   })
}

// 编辑
export function portCompile(data) {
    return request({
    url: `${data.id}`,
    method: 'PUT',
    data
   })
}

// 详情
export function portDetails(id) {
    return request({
    url: `${id}`,
    method: 'GET',
   })
}

// 删除
export function portRemove(id) {
    return request({
    url: `${id}`,
    method: 'DELETE',
   })
}

// 搜索
export function portSearch(data) {
    return request({
    url: `/?name=${data}`,
    method: 'GET',
   })
}